﻿@model Testicide.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

    <div class="order">
        <section id="loginForm" >
            <h2>Use a local account to log in.</h2>
            @using (Html.BeginForm(new { ReturnUrl = "Home/Index" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <table>
            <tr>
                <td>
                    <table>
                        <tr>
                            <td></td>
                            <td>@Html.LabelFor(m => m.UserName)</td>
                            <td>@Html.TextBoxFor(m => m.UserName)</td>
                            <td>@Html.ValidationMessageFor(m => m.UserName)</td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>@Html.LabelFor(m => m.Password)</td>
                            <td>@Html.PasswordFor(m => m.Password)</td>
                            <td>@Html.ValidationMessageFor(m => m.Password)</td>
                        </tr>
                        <tr style="min-height:8px;">
                            <td>@Html.CheckBoxFor(m => m.RememberMe)</td>
                            <td colspan="2">@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })</td>
                        </tr>
                    </table>
                    <input type="submit" value="Log in" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"  />
                </td>
                <td width="10px"></td>
                <td>
                    <img src="~/pictures/login.png" />
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
    <p>
        @Html.ActionLink("Register", "Register", "Account") if you don't have an account.
    </p>
}
        </section>
</div>
<footer>
    <nav class="navbar navbar-inverse navbar-fixed-bottom" role="navigation">
        <ul class="footer-nav navbar-nav">
            <li><a href="https://www.facebook.com/Testicide"><img class="socials" src="~/pictures/facebook.jpg" /></a></li>
            <li><a href="http://www.youtube.com/watch?v=eseZAgRotZ4&feature=youtu.be"><img class="socials" src="~/pictures/youtube.jpg" /></a></li>
        </ul>
    </nav>
</footer>

</>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
